<template>
  <div id="viewEdit">
    <el-button class="back" type="info" size="mini" plain icon="el-icon-arrow-left" @click="goBack">返回</el-button>
    <el-tabs v-model="active" type="card" @tab-click="" class="min-height">
      <el-tab-pane label="基本信息" name="first">
        <detail></detail>
      </el-tab-pane>
      <el-tab-pane label="随访信息" name="second">
        <message></message>
      </el-tab-pane>
    </el-tabs>
  </div>
</template>

<script>
  import detail from './detail'
  import message from './message'

  export default {
    name: "viewEdit",
    data() {
      return {
        active: 'first'
      }
    },
    methods: {
      goBack() {
        this.$router.go(-1);
      }
    },
    components: {
      detail,
      message
    }
  }
</script>

<style scoped>
  #viewEdit {
    position: relative;
  }

  .back {
    position: absolute;
    right: 0;
    top: 5px;
    z-index: 99999;
  }
</style>
